/* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
   Module Name          : com.yaodian100.ec.product.entity.SpecGeneralList
   Module Description   :

   Date Created      : 2011/3/10
   Original Author   : feeling.wang
   Team              : yaodian100
   ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
   MODIFICATION HISTORY
   ------------------------------------------------------------------------------
   Date Modified       Modified by       Comments
   ------------------------------------------------------------------------------
   ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
package com.yaodian100.ec.product.entity;

import java.util.Map;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Transient;

import net.sf.json.JSONArray;

import com.yaodian100.core.common.entity.BaseEntity;

/**
 * @author feeling.wang
 * 
 */
@Entity
@Table(name = "EC_SPECIFICATION_MAJOR")
public class SpecificationMajor extends BaseEntity {

	/**
	 *
	 */
	private static final long serialVersionUID = -8216380376583547106L;

	/**
	 * 主规格编号
	 */
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO, generator = "seq_ec_specification_major")
	@SequenceGenerator(name = "seq_ec_specification_major", sequenceName = "SEQ_EC_SPECIFICATION_MAJOR")
	@Column(name = "MAIN_SPEC_ID")
	private Long mainSpecId;

	/**
	 * 商品编号
	 */
	@Column(name = "PRODUCT_ID", nullable = false, length = 8)
	private String productId;

	/**
	 * 主规格名称
	 */
	@Column(name = "MAIN_SPEC_NAME", nullable = false, length = 20)
	private String mainSpecName;

	/**
	 * 是否已刪除
	 */
	@Column(name = "IS_DELETE", nullable = false, length = 1)
	private String isDelete = "N";

	/**
	 * 显示顺序(1~9,default 1 ，由小排到大)
	 */
	@Column(name = "SHOW_SEQ", nullable = false)
	private int showSeq = 1;

	/**
	 * json格式
	 */
	@Column(name = "JSON_DETAIL", nullable = false, length = 2000)
	private String jsonDetail;

	/**
	 * 是否设为封面
	 */
	@Column(name = "IS_COVER", nullable = false, length = 1)
	private String isCover = "N";

	/**
	 * ICON图
	 */
	@Column(name = "IMG_ICON", length = 100)
	private String imgIcon;

	/**
	 * 方形主图集合
	 */
	@Column(name = "IMG_MAIN", length = 1000)
	private String imgMain;

	/**
	 * 长形主图集合
	 */
	@Column(name = "IMG_RMAIN", length = 1000)
	private String imgRmain;

	/**
	 * 方形规格细节图集合
	 */
	@Column(name = "IMG_MSPEC", length = 1000)
	private String imgMspec;

	/**
	 * 长形规格细节图集合
	 */
	@Column(name = "IMG_RMSPEC", length = 1000)
	private String imgRmspec;

	@Transient
	private Map<String, JSONArray> jsonImgPath;

	public Long getMainSpecId() {
		return mainSpecId;
	}

	public String getProductId() {
		return productId;
	}

	public String getMainSpecName() {
		return mainSpecName;
	}

	public String getIsDelete() {
		return isDelete;
	}

	public int getShowSeq() {
		return showSeq;
	}

	public String getJsonDetail() {
		return jsonDetail;
	}

	public String getIsCover() {
		return isCover;
	}

	public void setMainSpecId(Long mainSpecId) {
		this.mainSpecId = mainSpecId;
	}

	public void setProductId(String productId) {
		this.productId = productId;
	}

	public void setMainSpecName(String mainSpecName) {
		this.mainSpecName = mainSpecName;
	}

	public void setIsDelete(String isDelete) {
		this.isDelete = isDelete;
	}

	public void setShowSeq(int showSeq) {
		this.showSeq = showSeq;
	}

	public void setJsonDetail(String jsonDetail) {
		this.jsonDetail = jsonDetail;
	}

	public void setIsCover(String isCover) {
		this.isCover = isCover;
	}

	public Map<String, JSONArray> getJsonImgPath() {
		return jsonImgPath;
	}

	public void setJsonImgPath(Map<String, JSONArray> jsonImgPath) {
		this.jsonImgPath = jsonImgPath;
	}

	public String getImgIcon() {
		return imgIcon;
	}

	public String getImgRmain() {
		return imgRmain;
	}

	public String getImgMspec() {
		return imgMspec;
	}

	public String getImgRmspec() {
		return imgRmspec;
	}

	public void setImgIcon(String imgIcon) {
		this.imgIcon = imgIcon;
	}

	public void setImgRmain(String imgRmain) {
		this.imgRmain = imgRmain;
	}

	public void setImgMspec(String imgMspec) {
		this.imgMspec = imgMspec;
	}

	public void setImgRmspec(String imgRmspec) {
		this.imgRmspec = imgRmspec;
	}

	public String getImgMain() {
		return imgMain;
	}

	public void setImgMain(String imgMain) {
		this.imgMain = imgMain;
	}
}